
//服务配置
let serve = {
  ApiURL: 'http://192.168.90.123:9003/panda-app/',
  code: {
    ok: '000000'
  }
}

const config = {
  serve: serve,
  expires: 1e3*60*60*24*30, //cookie 过期时间 7天
  OriginUrl: location.origin,
  HttpReg: /^(https|http|ktrar):\/\//,
  EmailReg: /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,
  PwdReg: /^[A-Za-z0-9_]{8,16}$/,
  IdCardReg: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
  PhoneReg: /^(0|86|17951)?(13[0-9]|15[012356789]|17[0678]|18[0-9]|14[57])[0-9]{8}$/,
  PwdReg: /^[A-Za-z0-9_]{8,16}$/,//匹配8-16位的任何字类字符，包括下划线。与“[A-Za-z0-9_]”等效
  UrlReg: /^((https|http):\/\/)(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9]{0}[a-z_!~*'().;?:@&=+$,%#-]+)+\/?)$/i,
  EmailAddress: {
    '163.com': 'mail.163.com',
    'vip.163.com': 'vip.163.com',
    '126.com': 'mail.126.com',
    'qq.com': 'mail.qq.com',
    'vip.qq.com': 'mail.qq.com',
    'foxmail.com': 'mail.qq.com',
    'gmail.com': 'mail.google.com',
    'sohu.com': 'mail.sohu.com',
    'vip.sina.com': 'vip.sina.com',
    'sina.com.cn': 'mail.sina.com.cn',
    'sina.com': 'mail.sina.com.cn',
    'yahoo.com.cn': 'login.yahoo.com/config/mail?&.src=ym&.intl=cn',
    'yahoo.cn': 'login.yahoo.com/config/mail?&.src=ym&.intl=cn',
    'tom.com': 'mail.tom.com',
    'yeah.net': 'www.yeah.net',
    '21cn.com': 'mail.21cn.com',
    'hotmail.com': 'www.hotmail.com',
    'sogou.com': 'mail.sogou.com',
    '188.com': 'www.188.com',
    '189.cn': 'webmail15.189.cn/webmail',
    'wo.com.cn': 'mail.wo.com.cn/smsmail',
    '139.com': 'mail.10086.cn'
  }
}

export default config;

